home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / LowMemEqu.a < prev    next >
Encoding:
Text File  |  1996-05-01  |  25.1 KB  |  571 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        LowMemEqu.a
  3. ;
  4. ;    Contains:    EQUates for low-mem locations.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Package:    Universal Interfaces 3.0d3
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;
  16. ;                    Internet:    apple.bugs@applelink.apple.com
  17. ;                    AppleLink:    APPLE.BUGS
  18. ;
  19. ;
  20.  
  21.     IF &TYPE('__LOWMEMEQU__') = 'UNDEFINED' THEN
  22. __LOWMEMEQU__ SET 1
  23.  
  24.  
  25.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  26.     include 'ConditionalMacros.a'
  27.     ENDIF
  28.  
  29.     ; This file is for System 7 development only
  30.     IF FOR_SYSTEM7_ONLY THEN
  31.     
  32.     ; All this globals have new names in LowMem.a
  33.     IF OLDROUTINENAMES THEN
  34.  
  35.     ; this file is only for classic 68K - not CFM 68K or PowerPC
  36.     IF GENERATING68K ** ¬ GENERATINGCFM THEN
  37.  
  38. ;___________________________________________________________________________
  39. ; LowMemEqu.a is a stepping stone to the Universal AIncludes.  
  40. ;
  41. ; When converting classic 68K assembly source to use the Universal AIncludes
  42. ; it is recommended to compare the object code produced before and after
  43. ; the conversion.  But, use of the _LMGetXXX accessors can generate different
  44. ; object code than use of an EQU from the old SysEqu.a file.  Therefore,
  45. ; this file exists so that you can continue to use EQU's to access lowmem
  46. ; (in classic 68K code only) while converting everything else to use
  47. ; the Universal AIncludes.  Once the object code comparison checks out and
  48. ; the conversion is complete (except for lowmem), this file can be removed
  49. ; and LowMem.a used instead.
  50. ;
  51. ;___________________________________________________________________________
  52.  
  53.  
  54.  
  55. PCDeskPat         EQU         $20B                      ; desktop pat, top bit only! others are in use
  56. HiKeyLast         EQU         $216                      ; Same as KbdVars
  57. KbdLast           EQU         $218                      ; Same as KbdVars+2
  58. ExpandMem         EQU         $2B6                      ; pointer to expanded memory block
  59.  
  60. ; start at $C00
  61.  
  62. SCSIBase          EQU         $0C00                     ; (long) base address for SCSI chip read
  63. SCSIDMA           EQU         $0C04                     ; (long) base address for SCSI DMA
  64. SCSIHsk           EQU         $0C08                     ; (long) base address for SCSI handshake
  65. SCSIGlobals       EQU         $0C0C                     ; (long) ptr for SCSI mgr locals
  66. RGBBlack          EQU         $0C10                     ; (6 bytes) the black field for color
  67. RGBWhite          EQU         $0C16                     ; (6 bytes) the white field for color
  68.  
  69. RowBits           EQU         $0C20                     ; (word) screen horizontal pixels
  70. ColLines          EQU         $0C22                     ; (word) screen vertical pixels
  71. ScreenBytes       EQU         $0C24                     ; (long) total screen bytes
  72.  
  73. NMIFlag           EQU         $0C2C                     ; (byte) flag for NMI debounce
  74. VidType           EQU         $0C2D                     ; (byte) video board type ID
  75. ScrnInval        EQU            $0C2D                    ; (byte) replaces obscure VidType.  When $FFFF, scrn resource is
  76.                                                     ;        valid.  When cleared, scrn resource is invalid.
  77. VidMode           EQU         $0C2E                     ; (byte) video mode (4=4bit color)
  78. SCSIPoll          EQU         $0C2F                     ; (byte) poll for device zero only once.
  79.  
  80. SEVarBase         EQU         $0C30                     ; ($0C30-0CB0) 128 bytes for sys err data
  81.  
  82. MMUFlags          EQU         $0CB0                     ; (byte) cleared to zero (reserved for future use)
  83. MMUType           EQU         $0CB1                     ; (byte) kind of MMU present
  84. MMU32bit          EQU         $0CB2                     ; (byte) boolean reflecting current machine MMU mode
  85. MMUTbl            EQU         $0CB4                     ; (long) pointer to MMU Mapping table
  86. MMUTblSize        EQU         $0CB8                     ; (long) size of the 24 bit mode MMU mapping table
  87. MMU24Info         EQU         $0CB4                      ; (long) ptr to 24 bit mode MMU configuration info
  88. MMU32Info         EQU         $0CB8                     ; (long) ptr to 32 bit mode MMU configuration info
  89. SInfoPtr          EQU         $0CBC                     ; (long) pointer to Slot manager information
  90. ASCBase           EQU         $0CC0                     ; (long) pointer to Sound Chip
  91. SMGlobals         EQU         $0CC4                     ; (long) pointer to Sound Manager Globals
  92. TheGDevice        EQU         $0CC8                     ; (long) the current graphics device
  93. CQDGlobals        EQU         $0CCC                     ; (long) quickDraw global extensions
  94.  
  95. ; TEMPORARY EQUATE
  96. DeskCPat          EQU         $0CD8                     ; [PixPatHandle] Handle to desk pixPat
  97.  
  98. TimeVIADB         EQU         $0CEA                     ; (word) number of iter's of VIA access & DBRA.    
  99.  
  100. VIA2               EQU         $0CEC                     ; VIA2 base address [pointer]                    
  101. RBV                EQU            VIA2                    ; RBV base address [pointer] share with VIA2    
  102. VIA2RBV           EQU         VIA2                     ; VIA2 or RBV base address [pointer]            
  103. OSS                EQU            VIA2                    ; OSS base address [pointer] share with VIA2    
  104. VIA2RBVOSS       EQU         VIA2                     ; VIA2 or RBV or OSS base address [pointer]        
  105. VISA            EQU            VIA2                    ; VISA base address [pointer]                    
  106. V8                EQU            VIA2                    ; V8 base address [pointer]
  107.  
  108. WarmStart         EQU         $0CFC                     ; (long) flag to indicate it is a warm start
  109. TimeDBRA          EQU         $0D00                     ; (word) number of iterations of DBRA per millisecond
  110. TimeSCCDB         EQU         $0D02                     ; (word) number of iter's of SCC access & DBRA.
  111.  
  112. PmgrBase          EQU         $0D18                      ; Lomem pointer to power manager vars
  113.  
  114. TableSeed         EQU         $0D20                     ; (long) seed value for color table ID's
  115. SRsrcTblPtr       EQU         $0D24                     ; (long) pointer to slot resource table.
  116. JVBLTask          EQU         $0D28                     ; vector to slot VBL task interrupt handler
  117. WMgrCPort         EQU         $0D2C                     ; window manager color port
  118. VertRRate         EQU         $0D30                     ; (word) Vertical refresh rate for start manager.
  119.  
  120. ChunkyDepth       EQU         $0D60                     ; depth of the pixels
  121. CrsrPtr           EQU         $0D62                     ; pointer to cursor save area
  122. PortList          EQU         $0D66                     ; list of grafports
  123. MickeyBytes       EQU         $0D6A                     ; long pointer to cursor stuff
  124. QDErr             EQU         $0D6E                     ; QuickDraw error code [word]
  125. VIA2DT            EQU         $0D70                     ; 32 bytes for VIA2 dispatch table for NuMac
  126.  
  127. SInitFlags        EQU         $0D90                     ; StartInit.a flags [word]
  128. DTQueue           EQU         $0D92                     ; (10 bytes) deferred task queue header
  129. DTQFlags          EQU         $0D92                     ; flag word for DTQueue
  130. DTskQHdr          EQU         $0D94                     ; ptr to head of queue
  131. DTskQTail         EQU         $0D98                     ; ptr to tail of queue
  132. JDTInstall        EQU         $0D9C                     ; (long) ptr to deferred task install routine
  133. HiliteRGB         EQU         $0DA0                     ; 6 bytes: rgb of hilite color
  134. DSCtrAdj          EQU         $0DA8                     ; (long) Center adjust for DS rect.
  135. IconTLAddr        EQU         $0DAC                     ; (long) pointer to where start icons are to be put.
  136. VideoInfoOK       EQU         $0DB0                     ; (long) Signals to CritErr that the Video card is ok
  137. EndSRTPtr         EQU         $0DB4                     ; (long) Pointer to the end of the Slot Resource Table (Not the SRT buffer).
  138. SDMJmpTblPtr      EQU         $0DB8                     ; (long) Pointer to the SDM jump table
  139. JSwapMMU          EQU         $0DBC                     ; (long) jump vector to SwapMMU routine
  140. SdmBusErr         EQU         $0DC0                     ; (long) Pointer to the SDM busErr handler
  141. LastTxGDevice     EQU         $0DC4                     ; (long) copy of TheGDevice set up for fast text measure
  142.  
  143. NewCrsrJTbl       EQU         $88C                      ; location of new crsr jump vectors
  144. JAllocCrsr        EQU         $88C                      ; (long) vector to routine that allocates cursor
  145. JSetCCrsr         EQU         $890                      ; (long) vector to routine that sets color cursor
  146. JOpcodeProc       EQU         $894                      ; (long) vector to process new picture opcodes
  147. CRSRBASE          EQU         $898                      ; (long) scrnBase for cursor
  148. CrsrDevice        EQU         $89C                      ; (long) current cursor device
  149. SrcDevice         EQU         $8A0                      ; (LONG) Src device for Stretchbits
  150. MainDevice        EQU         $8A4                      ; (long) the main screen device
  151. DeviceList        EQU         $8A8                      ; (long) list of display devices
  152. CRSRROW           EQU         $8AC                      ; (word) rowbytes for current cursor screen
  153. QDColors          EQU         $8B0                      ; (long) handle to default colors
  154.  
  155. ; QuickDraw
  156.  
  157. HiliteMode        EQU         $938                      ; used for color highlighting
  158.  
  159.  
  160. ; Exception vectors
  161.  
  162. BusErrVct         EQU         $008                   ; bus error vector
  163. AddrVector        EQU            $00C                ; address error
  164. IlglVector        EQU            $010                ; illegal instruction
  165. ZeroVector        EQU            $014                ; divide by 0
  166. CheckVector        EQU            $018                ; check bounds error
  167. TrapVVector        EQU            $01C                ; trapv location
  168. PrivlgVector    EQU            $020                ; privilege violation
  169. TraceVector        EQU            $024                ; trace exception vector
  170. Line1010          EQU         $028                   ; 1010 emulator trap (system routines)
  171. Line1111          EQU         $02C                   ; 1111 emulator trap (reserved)
  172. DebugVector        EQU            Line1111            ; debug instructions
  173. FmtErrVect        EQU         $038                   ; format error vector for 68010/68020
  174. BadIntVector    EQU            $060                ; spurious interrupt
  175. AutoInt1          EQU         $064                   ; level 1 auto-vector
  176. AutoInt2          EQU         $068                   ; level 2 auto-vector
  177. AutoInt3          EQU         $06C                   ; level 3 auto-vector
  178. AutoInt4          EQU         $070                   ; level 4 auto-vector
  179. AutoInt5          EQU         $074                   ; level 5 auto-vector
  180. AutoInt6          EQU         $078                   ; level 6 auto-vector
  181. AutoInt7          EQU         $07C                   ; level 7 auto-vector
  182. BkptVector        EQU            $0B8                ; break loc
  183.  
  184. ;+ System Error Handler
  185.  
  186. RestProc          EQU         $A8C                      ; Resume procedure f InitDialogs [pointer]
  187.  
  188.  
  189. ; Topanga video mode for Esprit
  190. NTSC               EQU         $B3E                      ; A byte                        
  191.  
  192.  
  193. ;+ ROM Equates
  194.  
  195. ROM85             EQU         $28E                      ; (word) actually high bit - 0 for ROM vers $75 (sic) and later
  196. ROMMapHndl        EQU         $B06                      ; (long) handle of ROM resource map
  197.  
  198. ;+ Screen Equates
  199.  
  200. ScrVRes           EQU         $102                      ; screen vertical dots/inch [word]
  201. ScrHRes           EQU         $104                      ; screen horizontal dots/inch [word]
  202. ScrnBase          EQU         $824                      ; Screen Base [pointer]
  203. ScreenRow         EQU         $106                      ; rowBytes of screen [word]
  204.  
  205.  
  206. ; Mouse/Keyboard
  207.  
  208. MBTicks           EQU         $16E                      ; tick count @ last mouse button [long]
  209. JKybdTask         EQU         $21A                      ; keyboard VBL task hook [pointer]
  210. KeyLast           EQU         $184                      ; ASCII for last valid keycode [word]
  211. KeyTime           EQU         $186                      ; tickcount when KEYLAST was rec'd [long]
  212. KeyRepTime        EQU         $18A                      ; tickcount when key was last repeated [long]
  213.  
  214. ;+ Parameter RAM (a twenty byte copy of the real parameter ram).
  215.  
  216. SPConfig          EQU         $1FB                      ; config bits: 4-7 A, 0-3 B (see use type below)
  217. SPPortA           EQU         $1FC                      ; SCC port A configuration [word]
  218. SPPortB           EQU         $1FE                      ; SCC port B configuration [word]
  219.  
  220. ; SCC Serial Chip Addresses
  221.  
  222. SCCRd             EQU         $1D8                      ; SCC base read address [pointer]
  223. SCCWr             EQU         $1DC                      ; SCC base write address [pointer]
  224.  
  225. ; Unpacked, user versions of parameter ram
  226.  
  227. DoubleTime        EQU         $2F0                      ; double click ticks [long]
  228. CaretTime         EQU         $2F4                      ; caret blink ticks [long]
  229. KeyThresh         EQU         $18E                      ; threshold for key repeat [word]
  230. KeyRepThresh      EQU         $190                      ; key repeat speed [word]
  231. SdVolume          EQU         $260                      ; Global volume(sound) control [byte]
  232.  
  233.  
  234. ;+ System Clocks
  235.  
  236. Ticks             EQU         $16A                      ; Tick count, time since boot [long]
  237. Time              EQU         $20C                      ; clock time (extrapolated) [long]
  238.  
  239.  
  240. ;+ Event Manager
  241.  
  242. MonkeyLives       EQU         $100                      ; monkey lives if >= 0 [word]
  243. SEvtEnb           EQU         $15C                      ; enable SysEvent calls from GNE [byte]
  244. JournalFlag       EQU         $8DE                      ; journaling state [word]
  245. JournalRef        EQU         $8E8                      ; Journalling driver's refnum [word]
  246.  
  247.  
  248. ;+ Memory Manager
  249.  
  250. BufPtr            EQU         $10C                      ; top of application memory [pointer]
  251. StkLowPt          EQU         $110                      ; Lowest stack as measured in VBL task [pointer]
  252. TheZone           EQU         $118                      ; current heap zone [pointer]
  253. ApplLimit         EQU         $130                      ; application limit [pointer]
  254. SysZone           EQU         $2A6                      ; system heap zone [pointer]
  255. ApplZone          EQU         $2AA                      ; application heap zone [pointer]
  256. HeapEnd           EQU         $114                      ; end of heap [pointer]
  257. HiHeapMark        EQU         $BAE                      ; (long) highest address used by a zone below sp
  258. MemErr            EQU         $220                      ; last memory manager error [word]
  259.  
  260. ; Driver Globals
  261.  
  262. UTableBase        EQU         $11C                      ; unit I/O table [pointer]
  263. UnitNtryCnt       EQU         $1D2                      ; count of entries in unit table [word]
  264. JFetch            EQU         $8F4                      ; fetch a byte routine for drivers [pointer]
  265. JStash            EQU         $8F8                      ; stash a byte routine for drivers [pointer]
  266. JIODone           EQU         $8FC                      ; IODone entry location [pointer]
  267.  
  268.  
  269. ; File System Globals
  270.  
  271. DrvQHdr           EQU         $308                      ; queue header of drives in system [10 bytes]
  272. BootDrive         EQU         $210                      ; drive number of boot drive [word]
  273. EjectNotify       EQU         $338                      ; eject notify procedure [pointer]
  274. IAZNotify         EQU         $33C                      ; world swaps notify procedure [pointer]
  275. SFSaveDisk        EQU         $214                      ; last vRefNum seen by standard file [word]
  276. CurDirStore       EQU         46+$36A                   ; save dir across calls to Standard File [long]
  277.  
  278. ;+ Miscellaneous stuff
  279.  
  280. OneOne            EQU         $A02                      ; constant $00010001 [long]
  281. MinusOne          EQU         $A06                      ; constant $FFFFFFFF [long]
  282. Lo3Bytes          EQU         $31A                      ; constant $00FFFFFF [long]
  283. ROMBase           EQU         $2AE                      ; ROM base address [pointer]
  284. RAMBase           EQU         $2B2                      ; RAM base address [pointer]
  285. SysVersion        EQU         $15A                      ; version # of RAM-based system [word]
  286. RndSeed           EQU         $156                      ; random seed/number [long]
  287.  
  288. ;+ Scratch Areas
  289.  
  290. Scratch20         EQU         $1E4                      ; scratch [20 bytes]
  291. Scratch8          EQU         $9FA                      ; scratch [8 bytes]
  292.  
  293.  
  294. ;+ Scrap Manager
  295.  
  296. ScrapVars         EQU         $960                      ; scrap manager variables [32 bytes]
  297. ScrapInfo         EQU         $960                      ; scrap length [long]
  298. ScrapSize         EQU         $960                      ; scrap length [long]
  299. ScrapHandle       EQU         $964                      ; memory scrap [handle]
  300. ScrapCount        EQU         $968                      ; validation byte [word]
  301. ScrapState        EQU         $96A                      ; scrap state [word]
  302. ScrapName         EQU         $96C                      ; pointer to scrap name [pointer]
  303. ScrapEnd          EQU         $980                      ; end of scrap vars
  304. ScrapTag          EQU         $970                      ; scrap file name [STRING[15]]
  305.  
  306.           
  307. ;International stuff
  308.  
  309. IntlSpec          EQU         $BA0                      ; (long) - ptr to extra Intl data
  310.  
  311. ;Switcher
  312.  
  313. SwitcherTPtr      EQU         $286                      ; Switcher's switch table
  314.  
  315.  
  316. ; Peripheral chips and Magic Hardware addresses
  317.  
  318. CPUFlag           EQU         $12F                      ; $00=68000, $01=68010, $02=68020 (old ROM inits to $00)
  319.  
  320. ; VIA (6522) interface chip
  321.  
  322. VIA               EQU         $1D4                      ; VIA base address [pointer]
  323.  
  324. ; Disk Address
  325.  
  326. IWM               EQU         $1E0                      ; IWM base address [pointer]
  327.  
  328.  
  329. ; Interrupt secondary vectors
  330.  
  331. Lvl1DT            EQU         $192                      ; Interrupt level 1 dispatch table [32 bytes]
  332. Lvl2DT            EQU         $1B2                      ; Interrupt level 2 dispatch table [32 bytes]
  333. ExtStsDT          EQU         $2BE                      ; SCC ext/sts secondary dispatch table [16 bytes]
  334.  
  335.  
  336. ; Parameter Ram
  337.  
  338. SPValid           EQU         $1F8                      ; validation field ($A7) [byte]
  339. SPATalkA          EQU         $1F9                      ; AppleTalk node number hint for port A
  340. SPATalkB          EQU         $1FA                      ; AppleTalk node number hint for port B
  341. SPAlarm           EQU         $200                      ; alarm time [long]
  342. SPFont            EQU         $204                      ; default application font number minus 1 [word]
  343. SPKbd             EQU         $206                      ; kbd repeat thresh in 4/60ths [2 4-bit]
  344. SPPrint           EQU         $207                      ; print stuff [byte]
  345. SPVolCtl          EQU         $208                      ; volume control [byte]
  346. SPClikCaret       EQU         $209                      ; double click/caret time in 4/60ths[2 4-bit]
  347. SPMisc1           EQU         $20A                      ; miscellaneous [1 byte]
  348. SPMisc2           EQU         $20B                      ; miscellaneous [1 byte]
  349. GetParam          EQU         $1E4                      ; system parameter scratch [20 bytes]
  350. SysParam          EQU         $1F8                      ; system parameter memory [20 bytes]
  351.  
  352. ; Cursor
  353.  
  354. CrsrThresh        EQU         $8EC                      ; delta threshold for mouse scaling [word]
  355. JCrsrTask         EQU         $8EE                      ; address of CrsrVBLTask [long]
  356. MTemp             EQU         $828                      ; Low-level interrupt mouse location [long]
  357. RawMouse          EQU         $82C                      ; un-jerked mouse coordinates [long]
  358. CrsrRect          EQU         $83C                      ; Cursor hit rectangle [8 bytes]
  359. TheCrsr           EQU         $844                      ; Cursor data, mask & hotspot [68 bytes]
  360. CrsrAddr          EQU         $888                      ; Address of data under cursor [long]
  361. CrsrSave          EQU         $88C                      ; data under the cursor [64 bytes]
  362. CrsrVis           EQU         $8CC                      ; Cursor visible? [byte]
  363. CrsrBusy          EQU         $8CD                      ; Cursor locked out? [byte]
  364. CrsrNew           EQU         $8CE                      ; Cursor changed? [byte]
  365. CrsrState         EQU         $8D0                      ; Cursor nesting level [word]
  366. CrsrObscure       EQU         $8D2                      ; Cursor obscure semaphore [byte]
  367.  
  368. ; Mouse/Keyboard
  369.  
  370. KbdVars           EQU         $216                      ; Keyboard manager variables [4 bytes]
  371. KbdType           EQU         $21E                      ; keyboard model number [byte]
  372. MBState           EQU         $172                      ; current mouse button state [byte]
  373. KeyBrdMap        EQU         $174                      ; bitmap of the keyboard [2 longs]
  374. KeypadMap         EQU         $17C                      ; bitmap for numeric pad-18bits [long]
  375. Key1Trans         EQU         $29E                      ; keyboard translator procedure [pointer]
  376. Key2Trans         EQU         $2A2                      ; numeric keypad translator procedure [pointer]
  377. JGNEFilter        EQU         $29A                      ; GetNextEvent filter proc [pointer]
  378. KeyMVars          EQU         $B04                      ; (word) for ROM KEYM proc state
  379. Mouse             EQU         $830                      ; processed mouse coordinate [long]
  380. CrsrPin           EQU         $834                      ; cursor pinning rectangle [8 bytes]
  381. CrsrCouple        EQU         $8CF                      ; cursor coupled to mouse? [byte]
  382. CrsrScale         EQU         $8D3                      ; cursor scaled? [byte]
  383. MouseMask         EQU         $8D6                      ; V-H mask for ANDing with mouse [long]
  384. MouseOffset       EQU         $8DA                      ; V-H offset for adding after ANDing [long]
  385.  
  386. ; System Clocks
  387.  
  388. AlarmState        EQU         $21F                      ; Bit7=parity, Bit6=beeped, Bit0=enable [byte]
  389.  
  390.  
  391. ;+ Vertical Blanking Interrupt Handler
  392.  
  393. VBLQueue          EQU         $160                      ; VBL queue header [10 bytes]
  394.  
  395. ; Event manager
  396.  
  397. SysEvtMask        EQU         $144                      ; system event mask [word]
  398. SysEvtBuf         EQU         $146                      ; system event queue element buffer [pointer]
  399. EventQueue        EQU         $14A                      ; event queue header [10 bytes]
  400. EvtBufCnt         EQU         $154                      ; max number of events in SysEvtBuf - 1 [word]
  401.  
  402. ; Memory manager
  403.  
  404. GZRootHnd         EQU         $328                      ; root handle for GrowZone [handle]
  405. GZRootPtr         EQU         $32C                      ; root pointer for GrowZone [pointer]
  406. GZMoveHnd         EQU         $330                      ; moving handle for GrowZone [handle]
  407. MemTop            EQU         $108                      ; top of memory [pointer]
  408. MmInOK            EQU         $12E                      ; initial memory mgr checks ok? [byte]
  409. HpChk             EQU         $316                      ; heap check RAM code [pointer]
  410. MaskBC            EQU         $31A                      ; Memory Manager Byte Count Mask [long]
  411. MaskHandle        EQU         $31A                      ; Memory Manager Handle Mask [long]
  412. MaskPtr           EQU         $31A                      ; Memory Manager Pointer Mask [long]
  413. MinStack          EQU         $31E                      ; min stack size used in InitApplZone [long]
  414. DefltStack        EQU         $322                      ; default size of stack [long]
  415. MMDefFlags        EQU         $326                      ; default zone flags [word]
  416.  
  417. ;+ System Error Handler
  418.  
  419. DSAlertTab        EQU         $2BA                      ; system error alerts [pointer]
  420. DSAlertRect       EQU         $3F8                      ; rectangle for disk-switch alert [8 bytes]
  421. DSDrawProc        EQU         $334                      ; alternate syserror draw procedure [pointer]
  422. DSWndUpdate       EQU         $15D                      ; GNE not to paintBehind DS AlertRect? [byte]
  423. WWExist           EQU         $8F2                      ; window manager initialized? [byte]
  424. QDExist           EQU         $8F3                      ; quickdraw is initialized [byte]
  425. ResumeProc        EQU         $A8C                      ; Resume procedure from InitDialogs [pointer]
  426. DSErrCode         EQU         $AF0                      ; last system error alert ID
  427.  
  428. ; Serial I/O Driver
  429.  
  430. SerialVars        EQU         $2D0                      ; async driver variables [16 bytes]
  431. ABusVars          EQU         $2D8                      ; Pointer to AppleTalk local variables
  432. ABusDCE           EQU         $2DC                      ; Pointer to AppleTalk DCE
  433. PortAUse          EQU         $290                      ; bit 7: 1 = not in use, 0 = in use
  434. ; bits 0-3: current use of port (see use type)
  435. ; bits 4-6: user specific
  436. PortBUse          EQU         $291                      ; port B use, same format as PortAUse
  437. SCCASts           EQU         $2CE                      ; SCC read reg 0 last ext/sts rupt - A [byte]
  438. SCCBSts           EQU         $2CF                      ; SCC read reg 0 last ext/sts rupt - B [byte]
  439.  
  440.  
  441. DskErr            EQU         $142                      ; disk routine result code [word]
  442. PWMBuf2           EQU         $312                      ; PWM buffer 1 (or 2 if sound) [pointer]
  443.  
  444. ; Sound Stuff
  445.  
  446. SoundPtr          EQU         $262                      ; 4VE sound definition table [pointer]
  447. SoundBase         EQU         $266                      ; sound bitMap [pointer]
  448. SoundVBL          EQU         $26A                      ; vertical retrace control element [16 bytes]
  449. SoundDCE          EQU         $27A                      ; sound driver DCE [pointer]
  450. SoundActive       EQU         $27E                      ; sound is active? [byte]
  451. SoundLevel        EQU         $27F                      ; current level in buffer [byte]
  452. CurPitch          EQU         $280                      ; current pitch value [word]
  453.  
  454. ; I/O System
  455.  
  456. ToExtFS           EQU         $3F2                      ; hook for external file systems
  457.  
  458. ; File System Globals
  459.  
  460. DskVerify         EQU         $12C                      ; used by 3.5 disk driver for read/verify [byte]
  461. TagData           EQU         $2FA                      ; sector tag info for disk drivers [14 bytes]
  462. BufTgFNum         EQU         $2FC                      ; file number [long]
  463. BufTgFFlg         EQU         $300                      ; flags [word]
  464. BufTgFBkNum       EQU         $302                      ; logical block number [word]
  465. BufTgDate         EQU         $304                      ; time stamp [word]
  466.  
  467. ; Print variables
  468.  
  469. ScrDmpEnb         EQU         $2F8                      ; screen dump enabled? [byte]
  470. ScrDmpType        EQU         $2F9                      ; FF dumps screen, FE dumps front window [byte]
  471.  
  472.  
  473. ; Segment Loader
  474.  
  475. LaunchFlag        EQU         $902                      ; from launch or chain [byte]
  476. SaveSegHandle     EQU         $930                      ; seg 0 handle [handle]
  477. CurJTOffset       EQU         $934                      ; current jump table offset [word]
  478. CurPageOption     EQU         $936                      ; current page 2 configuration [word]
  479. LoaderPBlock      EQU         $93A                      ; param block for ExitToShell [10 bytes]
  480. CurApRefNum       EQU         $900                      ; refNum of application's resFile [word]
  481. CurrentA5         EQU         $904                      ; current value of A5 [pointer]
  482. CurStackBase      EQU         $908                      ; current stack base [pointer]
  483. CurApName         EQU         $910                      ; name of application [STRING[31]]
  484. LoadTrap          EQU         $12D                      ; trap before launch? [byte]
  485. SegHiEnable       EQU         $BB2                      ; (byte) 0 to disable MoveHHi in LoadSeg
  486.  
  487.  
  488. ; Background Notification Manager
  489.  
  490. BNMQHd            EQU         $B60                      ; head of background notification Q
  491.  
  492.  
  493. ; Communications Toolbox Globals Pointer
  494.  
  495. CommToolboxGlobals    EQU         $BB4                  ; [long] pointer to CTB Globals 
  496.  
  497.  
  498. FCBSPtr           EQU         $34E                      ; ptr to FCBs
  499. DefVCBPtr         EQU         $352                      ; pointer to default VCB
  500. FSFCBLen          EQU         $3F6                      ; HFS present flag / FCB size (-1 in old ROM)
  501. RomFont0          EQU         $980                      ; system font [handle]
  502. ApFontID          EQU         $984                      ; resource ID of application font [word]
  503. WindowList        EQU         $9D6                      ; Z-ordered linked list of windows [pointer]
  504. SaveUpdate        EQU         $9DA                      ; Enable update accumulation? [word]
  505. PaintWhite        EQU         $9DC                      ; erase newly drawn windows? [word]
  506. WMgrPort          EQU         $9DE                      ; window manager's grafport [pointer]
  507. DragHook          EQU         $9F6                      ; user hook during dragging [pointer]
  508. GhostWindow       EQU         $A84                      ; window hidden from FrontWindow [pointer]
  509. CurActivate       EQU         $A64                      ; window slated for activate event [pointer]
  510. CurDeactive       EQU         $A68                      ; window slated for deactivate event [pointer]
  511. OldStructure      EQU         $9E6                      ; saved structure region [handle]
  512. OldContent        EQU         $9EA                      ; saved content region [handle]
  513. SaveVisRgn        EQU         $9F2                      ; temporarily saved visRegion [handle]
  514. TopMenuItem       EQU         $A0A                      ; pixel value of top of scrollable menu
  515. AtMenuBottom      EQU         $A0C                      ; pixel value of bottom of scrollable menu
  516. MenuList          EQU         $A1C                      ; current menuBar list structure [handle]
  517. MBarEnable        EQU         $A20                      ; menuBar enable for desk accessories[word]
  518. MenuFlash         EQU         $A24                      ; flash feedback count [word]
  519. TheMenu           EQU         $A26                      ; ID of hilited menu [word]
  520. MBarHook          EQU         $A2C                      ; user hook during menuSelect [pointer]
  521. MrMacHook         EQU         $A2C                      ; Mr. Macintosh hook [pointer]
  522. MenuHook          EQU         $A30                      ; user hook during menuSelect [pointer]
  523. TopMapHndl        EQU         $A50                      ; topmost map in list [handle]
  524. SysMapHndl        EQU         $A54                      ; system map [handle]
  525. SysMap            EQU         $A58                      ; reference number of system map [word]
  526. CurMap            EQU         $A5A                      ; reference number of current map [word]
  527. ResLoad           EQU         $A5E                      ; Auto-load feature [word]
  528. ResErr            EQU         $A60                      ; Resource error code [word]
  529. FScaleDisable     EQU         $A63                      ; disable font scaling? [byte]
  530. DeskHook          EQU         $A6C                      ; hook for painting the desk [pointer]
  531. TEDoText          EQU         $A70                      ; textEdit doText proc hook [pointer]
  532. TERecal           EQU         $A74                      ; textEdit recalText proc hook [pointer]
  533. ANumber           EQU         $A98                      ; active alert ID [word]
  534. ACount            EQU         $A9A                      ; # times this alert called [word]
  535. DABeeper          EQU         $A9C                      ; beep routine [pointer]
  536. TEScrpLength      EQU         $AB0                      ; textEdit Scrap Length [word]
  537. TEScrpHandle      EQU         $AB4                      ; textEdit Scrap [handle]
  538. AppParmHandle     EQU         $AEC                      ; handle to hold application parameters
  539. ResErrProc        EQU         $AF2                      ; Resource error procedure [pointer]
  540. DlgFont           EQU         $AFA                      ; default dialog font ID [word]
  541. WidthPtr          EQU         $B10                      ; (long) Font Mgr global
  542. AtalkHk2          EQU         $B18                      ; (long) Appletalk hook
  543. SCSIFlag          EQU         $B22                      ; (word) Configuration Flag for SCSI
  544. WidthTabHandle    EQU         $B2A                      ; Font width table handle for measure
  545. LastSPExtra       EQU         $B4C                      ; (long) most recent value of space extra
  546. RomMapInsert      EQU         $B9E                      ; (byte) determines if we should link in map
  547. TmpResLoad        EQU         $B9F                      ; second byte is temporary ResLoad value.
  548. WordRedraw        EQU         $BA5                      ; (byte) - used by TextEdit RecalDraw
  549. SysFontFam        EQU         $BA6                      ; (word) System font family ID or zero
  550. SysFontSize       EQU         $BA8                      ; (word) System font size (or zero for 12 pt)
  551. MBarHeight        EQU         $BAA                      ; (word) height of menu bar (usually 20)
  552. LastFOND          EQU         $BC2                      ; (long) handle of last font def record
  553. FractEnable       EQU         $BF4                      ; (byte) flag for fractional font widths
  554.  
  555. WidthListHand     EQU         $8E4                      ; list of extra width tables, or nil.
  556. PrintErr          EQU         $944                      ; Current Printer Error
  557. GrayRgn           EQU         $9EE                      ; rounded gray desk region [handle]
  558. AuxWinHead        EQU         $0CD0                     ; [handle] Window Aux List head
  559. MenuDisable       EQU         $0B54                     ; menuID and Item when disabled item selected
  560. TESysJust         EQU         $BAC                      ; (word) system justification (intl. textEdit)
  561. MenuCInfo         EQU         $0D50                     ; hanel to menu color information table
  562. TimeSCSIDB        EQU            $0B24                    ; DBRAs & SCSI access per millisecond 
  563.  
  564.     ENDIF ; GENERATING68K ** ¬ GENERATINGCFM 
  565.     ENDIF ; OLDROUTINENAMES 
  566.     ENDIF ; FOR_SYSTEM7_ONLY 
  567.  
  568.  
  569.     ENDIF ; __LOWMEMEQU__
  570.